(global.webpackJsonp = global.webpackJsonp || []).push([ [ "help/detail" ], {
    "0713": function(t, e, i) {
        i.d(e, "b", function() {
            return n;
        }), i.d(e, "c", function() {
            return r;
        }), i.d(e, "a", function() {});
        var n = function() {
            var t = this, e = (t.$createElement, t._self._c, t.isShow ? !t.userIds.includes(t.user.id) && t.user.id != t.info.user.user_id : null), i = t.isShow ? t.userIds.includes(t.user.id) && t.user.id != t.info.user.user_id : null;
            t.$mp.data = Object.assign({}, {
                $root: {
                    g0: e,
                    g1: i
                }
            });
        }, r = [];
    },
    2813: function(t, e, i) {
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var n = i("a71e"), r = i("26cb"), s = i("8434"), o = i("72c7"), u = i("7a6d"), c = i("db8f"), a = i("7960"), f = i("b806"), d = function(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }(i("801c"));
            function l(t, e) {
                var i = Object.keys(t);
                if (Object.getOwnPropertySymbols) {
                    var n = Object.getOwnPropertySymbols(t);
                    e && (n = n.filter(function(e) {
                        return Object.getOwnPropertyDescriptor(t, e).enumerable;
                    })), i.push.apply(i, n);
                }
                return i;
            }
            function h(t, e, i) {
                return e in t ? Object.defineProperty(t, e, {
                    value: i,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = i, t;
            }
            var p = {
                components: {},
                computed: function(t) {
                    for (var e = 1; e < arguments.length; e++) {
                        var i = null != arguments[e] ? arguments[e] : {};
                        e % 2 ? l(Object(i), !0).forEach(function(e) {
                            h(t, e, i[e]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : l(Object(i)).forEach(function(e) {
                            Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e));
                        });
                    }
                    return t;
                }({}, (0, r.mapGetters)([ "configs", "mainColor", "user" ])),
                data: function() {
                    return {
                        info: {},
                        html: "",
                        type: 1,
                        id: "",
                        time: "",
                        timers: "",
                        isBegin: 1,
                        isShow: !1,
                        current_id: "",
                        color: "",
                        userList: [],
                        userLists: [],
                        cha_Num: "",
                        userIds: [],
                        isMark: !1,
                        posterImg: "",
                        checkClass: "",
                        Image_share: !1,
                        heights: ""
                    };
                },
                created: function() {
                    var e = this;
                    t.getSystemInfo({
                        success: function(t) {
                            e.heights = (t.windowWidth / 1.64).toFixed(2) + "px";
                        }
                    });
                },
                onLoad: function(t) {
                    var e = this;
                    this.id = t.id || (0, c.getPageId)(e).id, (0, n.isEmpty)(t.current_id) || (e.current_id = t.current_id), 
                    (0, n.isEmpty)(t.pid) || d.default.commit("config/SET_PID", t.pid);
                    var i = (0, c.getShareParams)(decodeURIComponent(t.scene)), r = i.pid, s = i.id, o = i.current_id;
                    (0, n.isEmpty)(r) || d.default.commit("config/SET_PID", r), (0, n.isEmpty)(o) || (e.current_id = o), 
                    (0, n.isEmpty)(s) || (e.id = s);
                },
                onShow: function() {
                    var t = this;
                    (0, f.init)(this).then(function(e) {
                        (0, n.isEmpty)(t.current_id) ? t.getDetail() : t.getInfo();
                    }).catch(function(t) {
                        return console.log(t);
                    });
                },
                destroyed: function() {
                    clearInterval(this.timers);
                },
                onShareAppMessage: function(t) {
                    var e = (0, n.isEmpty)(this.user.id) ? 0 : this.user.id, i = this.id, r = this.current_id;
                    return t.from, {
                        title: this.info.title,
                        path: "/help/detail?id=" + i + "&pid=" + e + "&current_id=" + r
                    };
                },
                onShareTimeline: function() {
                    var t = (0, n.isEmpty)(this.user.id) ? 0 : this.user.id, e = (0, n.isEmpty)(this.id) ? 0 : this.id, i = this.current_id;
                    return {
                        title: this.info.title,
                        query: "id=" + e + "&pid=" + t + "&current_id=" + i,
                        imageUrl: this.info.bg_img
                    };
                },
                onPullDownRefresh: function() {
                    this.getInfo();
                },
                methods: {
                    discard: function() {},
                    openMark: function() {
                        this.isMark = !0;
                    },
                    closeMark: function() {
                        this.isMark = !1;
                    },
                    getPoster: function() {
                        var t = this, e = {
                            type: 8,
                            id: t.id,
                            current_id: t.current_id
                        };
                        (0, u.poster)(e).then(function(e) {
                            t.posterImg = e;
                        });
                    },
                    preImg: function() {
                        var e = [];
                        e.push(this.posterImg), t.previewImage({
                            urls: e
                        });
                    },
                    isImageShow: function() {
                        this.Image_share = !1;
                    },
                    open: function() {
                        this.Image_share = !0;
                    },
                    saveUser: function() {},
                    createHb: function() {
                        this.open(), this.getPoster();
                    },
                    myJoin: function() {
                        (0, s.route)({
                            url: "/help/detail",
                            type: 1,
                            data: {
                                id: this.id
                            }
                        });
                    },
                    goDetail: function() {
                        var t = "";
                        switch (this.info.type) {
                          case "1":
                            t = "/course/course/courseDetails";
                            break;

                          case "2":
                            t = "/question/paper/index";
                            break;

                          case "3":
                            t = "/annex/index";
                        }
                        (0, s.route)({
                            url: t,
                            type: 1,
                            data: {
                                id: this.info.product.id
                            }
                        });
                    },
                    shareModal: function() {},
                    help: function() {
                        var t = this, e = {
                            assist_id: t.id,
                            current_id: t.current_id
                        };
                        (0, a.h5JudgeLogin)(2).then(function(i) {
                            i || (0, o.assist)(e).then(function(e) {
                                t.getInfo();
                            });
                        });
                    },
                    tab: function(t) {
                        this.type = t;
                    },
                    getDetail: function() {
                        var t = this, e = {
                            assist_id: t.id
                        };
                        (0, o.firstAssist)(e).then(function(e) {
                            t.current_id = e.current_id, t.getInfo();
                        });
                    },
                    getInfo: function() {
                        var e = this, i = {
                            assist_id: e.id,
                            current_id: e.current_id,
                            isLoading: !1
                        };
                        (0, o.assistInfo)(i).then(function(i) {
                            e.info = i, e.userLists = [], e.userList = [];
                            var n = {
                                avatarUrl: "",
                                nickName: "",
                                user_id: ""
                            };
                            e.cha_Num = e.info.num - e.info.ok_num, e.info.userlist.length > 0 && e.info.userlist.map(function(t, i) {
                                e.userIds.push(t.user_id);
                            }), e.userList = e.userList.concat(e.info.userlist);
                            for (var r = e.info.num - e.info.userlist.length, s = 0; s < r; s++) e.userList.push(n);
                            if (e.info.num > 4) {
                                e.userLists = e.userLists.concat(e.info.userlist);
                                for (var o = 4 - e.info.userlist.length, u = 0; u < o; u++) e.userLists.push(n);
                            } else {
                                e.userLists = e.userLists.concat(e.info.userlist);
                                for (var c = e.info.num - e.info.userlist.length, a = 0; a < c; a++) e.userLists.push(n);
                            }
                            t.setNavigationBarTitle({
                                title: e.info.title
                            }), e.isShow = !0, e.startTime(), t.stopPullDownRefresh();
                        });
                    },
                    startTime: function() {
                        var t = this, e = 1e3 * t.info.end_time;
                        t.time = (0, c.betweenTime)(e), t.timers = setInterval(function() {
                            if (0 == t.time) return t.isBegin = 2, clearInterval(t.timers), t.time, !1;
                            t.time = (0, c.betweenTime)(e);
                        }, 1e3);
                    }
                }
            };
            e.default = p;
        }).call(this, i("543d").default);
    },
    "62b0": function(t, e, i) {
        i.r(e);
        var n = i("2813"), r = i.n(n);
        for (var s in n) "default" !== s && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(s);
        e.default = r.a;
    },
    "688b": function(t, e, i) {
        var n = i("f122");
        i.n(n).a;
    },
    bf91: function(t, e, i) {
        (function(t) {
            i("1067"), n(i("66fd"));
            var e = n(i("d9f5"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = i, t(e.default);
        }).call(this, i("543d").createPage);
    },
    d9f5: function(t, e, i) {
        i.r(e);
        var n = i("0713"), r = i("62b0");
        for (var s in r) "default" !== s && function(t) {
            i.d(e, t, function() {
                return r[t];
            });
        }(s);
        i("688b");
        var o = i("f0c5"), u = Object(o.a)(r.default, n.b, n.c, !1, null, "dad8af1a", null, !1, n.a, void 0);
        e.default = u.exports;
    },
    f122: function(t, e, i) {}
}, [ [ "bf91", "common/runtime", "common/vendor" ] ] ]);